fix the bug with update favorite buttons