fix: create a shallow copy of dictionaries