fix quick sort