Fix bug where a trip's origin was constantly updated