fix return value in get_collection