Fixed error preventing collections to be grouped together.