fixed bugs related to the deleting and undo deleting of problems in a set.