Fix incorrect keyword for exclusion if => when

Fix #252