partial fix for gvpack segfault