fix mis-ordered specs in dependency_spec