restore file after weird glitch