Fixed a bug into the random data generator.