fixed an issue with nested dicts