Correct typo in if statement