fixed js-error