fixed small reset glitch