fix atoi in rescale field