Fix bug when editing a problem