Fix id rounding problem