fix deleting single object