fix deleting a context when it is associated with meta sets