Fixed bugs with deleting and reordering problems in a problem set.