Minor fix to the AI for partially matched orders