fix logic
Merge pull request #10 from ainame/hotfix-logic

fix logic