fix keyboard bug