Fixed resolve/getpackages ordering.