fix order validation