Fixed a JS Error