Fixed an error in which deleted problems could not be recovered.
Changing the UserSet to ensure that the incoming integer data is in proper form.
Some code cleanup.