fixed bug in collection