Found edge case that exposes vulnerability
Fixed rounding issues