Fixing issue with from_hash_x

Old version is using keys instead of hsh.keys.