Correct losing focus