Fix appId types