fix index js error