Fixed js error.