bug fix the favorites