Fixed a bug in deletion of old tokens