fixed favorite checking bug