fix error for duplicate ptr records