Fixed Issue #287 and bug in which problems could not be added to a set.