Fix tick max distance