fixed join table issues for favorites