fix a bug in erase addr