Fixed issues wrt ZkRegistry.