minor bugfixes
Merge branch 'master' of https://github.com/cbleiler/cm