Fix exception when load dump from pickle