Fixed a bug with the latest departure calculation.