fixed randomize units