Fixed probled with Randomization and IO