Fixed errors in "clunky" definition for pattern guards