fix dom change lag issue