Fixed model randomization bug