fix merge sort