fix seed bugs
Merge pull request #32 from snoweye/master

fix seed bugs