bug fix with the cosine coef graph and slider