fix get user favorites function