fix error when no finished orders present