PR keypad flags bug fix