Fix the js error