Fixed editor js error