Fixed a bug with packageVersion not working