Fix the random generated variables