fix #141 and catch conversion errors when updating settings

See #141