Fixed lost focus bug.