fixed bug in getAppUrl