LATVIAN Railways (LZD) has agreed a 12-year €22.8m loan agreement with the Nordic Investment Bank (NIB) for modernisation of its fleet of 14 2M62UM diesel locomotives.