fixed bug causing settings page to break