Fixed a bug NPE when backuping