fixed mergesort case