Fixing if sentence