fix list::erase bug