Fixed bug of duplicated apps not being deleted