Initialize both appId and root attr to null