Fixed SCI-817 tick positioning wrong when only one tick generated plus
fixed NaN bug