fixed small bug for choosing random study