fixed internal typo , definition order