Avoid accessing private member variable of Index when removing entries.