fixed linear graph rendering bugs