fix some bugs in NULL and XML about null