Fixed bug in create_order_stat