Corrects if statement.