Fixed if statement