fix bug infinite loops by spm param
Merge pull request #16 from shepherdwind/master

demo引起死循环问题