bug fix when adding to favorites and filtering