ticket:8 fix js error