fixed intercept bug