Fixed wrong behavior of pertag
Merge pull request #2 from wyvie/master

Fixed wrong behavior of pertag