fix error producing graph in intercept case