Possible fix for keyboard disappearing bug.