fixed collection bug