fixing favorite feature