fixing special position and numerical precision issues. (progress)