fix crash after save
fix another crash
Merge pull request #2 from yihuang/nds-2.6

fix crash after SAVE command.