Fixed bug where setting the package sometimes does not work when version is also set.