fixes ajax for favorites