Fixed precision issues with case origin percent queries