Fixed bug with max and trains who do just a partial trip