fix quicksort fallback