Bugfix for focus lost.