Fixed error for multiple orders