fixed clean_old_token bugs