Fix js error and width error.