Files uninstall is failing due to missing variable