Fixing issue with from_hash_x

Uses keys instead of hsh.keys