fixed bug with a linear plot