Fixed bug in keyboardWillShow