Fix symbol distance calculation