fix favorite bug.