Fix issues in appmanager add