Correct nm2data
Bug fix nm2data