fixes randomized queue