fix ordering rule