fixing favorite bug