Fixed if clause