Fix dx rounding problem