fix keyboard failure