Fix issue with saving the pdb at each tick