fixed bug where linearscaling was crossed with scaling mode value