fixed a minor bug in collections