fixed loop in recommender