Fix comparison in newmod.

Fixes #1.