fixed error in asset deletion