Fixed bug in update deletes of metadata.