Fixed a JS error