fixing keyboard bug