Fixed doubles rounding error