convert remove_items to avoid crashes