Fixed typo in if statement.