fix small pth bug