some bug fix about favorites