Fixed if statement.