fix ShuffleArray() function