Fixed typo in the "if" statement