hopefully fixed js error