fixed bugs in api collection (remove from collection)