Fixed bug wrt gt_map_get_length()
Fixed bug wrt trim in junctions