fix uninstalling and refreshing at the app manager

Change-Id: I31d71a6c0660074478be0b0638e784457038109a