fixing getFavorites