fix a pointer variable