Fixed NRTM bug