[randomizer] fixed a bug with constructor