bug fixes

fixes of random selection in recommendations