Fixed bug with saving string values in settings