Fix special postition calculations.