Fix registerRoot

Fixes #175.

Created by  Eelco Dolstra  on August 13, 2014
I3S23ZI23V2AG5PEOMDYM7Q2GDCEWS5EKNLZRABFJIYKRU7SKOXQC
Change contents