fixed problem with keyboard hiding