Resolved an edge case in the order splitting function.