Fix obsolete references to self._sm

Fixes #18