fixed pth file recording