Fix js error.