Fix problem deleting remote objects