fix tags selection
Merge pull request #1 from ivan1986/master

My apologies because it took me 2 years to confirm your pull request.