bug fixed in random