fix for packvector