t660: fix null pointer exception when saving.