correct some bad rouding errors