Fix registerRoot

Fixes #175.