Fixing error in unless command