fix pkg version passing