Fixed socpe problem when more than one collection was specified