Proposed bugfix for issue #3 of standardml/cmlib

If accepted, this should be introduced both for v1 and v2 branches.