Fixed bug in collections