Fixed stupid typo in if statement.