fix the stock variation logic again
Merge pull request #22 from ycj28c/master

fix the stock variation logic again