fix appid usage