bug fix, now randomize button works properly