fix keyboard priority issue