fix DOM check

CPU profiling