make the randomize options work properly