Cleaning up NULL pointers.