fix errors
fix js error cannot find property dd of undefined