fix minor bug with ordered directive