fix bug: undefined method 'stringify_keys' of hash