set deleted pointers to NULL