fixed #322: uses directive elements not consistent order