Fix problem in server when setting app id