Fix resolution order of specifications