Fixed deleteFavorites bug