Fix bug in keyword equality check