fix the keyboard change style bug.