Fix retries limit in trigonometric scales calculation.