changed access pattern for attribute_mapped_collections to to fix weak reference GC issue