Fixing issue with stopping recording before there is any waypoints