Fix favorites logic