fixed bug in Order constructor