fix reference to freed pointer