Fixed bad if statement.