fixed js error.