fixed randomize switch