Fixed bug with distance/duration max