bug fixing for CleanupAsset.php