fix singleMode 'collection as an attribute' feature.