Fix issue when passing packageName but not packageVersion and vice-versa