fix the wp.dom build funciton bug