fixed keyboard bug