Fix bug in newmod.

Noticed by: Frank.