Fix bug when trying to edit general settings, closes #259