fix order for min_ep