Fix quick sort