fix the fix to unpickeling from outside the package