fix the stupid 2-time iteration issue
Merge pull request #28 from liyu1981/master

fix the stupid 2-time iteration issue