Changed an if statement