Flatten dictionary problem added