clean the dom before delete; don't delete just after jump