fix bugs about appid