Fixed a bug where favorites were appearing multiple times