fix passing string value when hash is expected
Merge pull request #821 from rebelact/fix_hash_parameters

fix passing string value when hash is expected