fixed a point calculation issue