fix editting glitch