fix min_order warning