fix keyboard regression