Fixed add_shape_dist_traveled()