fixed stupid js error