Fixed a bug when loading a null field