fixed aggregation cursor issues
Collection was changed to be prototype based