Removed gpx from the recursive call.
An error sourged, the rusult is now 10 instead of 18!!!!