Small bug fix in the initializor for RegKey class.