fix recursive randomizer