Fixed js error because of skeleton