Fixed if else statement.