fix issue of exject js error