fixed bug where PBCs were lost during pickling