Fixing the add new app fail issue