fixed randomizer errors