fix addToFavourite bug