fix pdb writer