fixed the issue with favorites