fixed another javascript error