Fixed a js error