Fixed random seed issues