fix the position error of float