fix bug with linear scale