fix bug in to_settings_hash
Merge pull request #47 from hankwallace/master

Fix bug in to_settings_hash