Fix simple
Fix a dead loop situation
Merge pull request #1 from yihuang/nds-unstable

Simple fix