Correct type nsm->nms

Reported by:    mbj