Fixed collapse for nested objects