fixed rounding error in LinearDim