Codes magically disappeared
So for the past couple of months I've been throwing EVAP code and knock sensor codes...0705, 0304, 0309. I bought a new gas cap, made sure my vent valve was working and reset the codes. It was clear for a couple of days then I pumped gas and as soon as I drive off the SES light comes back on. This happened multiple times and its always after I pump gas. I finally gave up and quit resetting the codes so my SES light is on constantly......till today, it shuts off by itself and when I went to check it gave me 0505 code which is a no code thrown message......any insight on this?