Fix deprecated use of pointer(