Fixing the typo in the final pattern match code