rename pickle file, fix KeyError