Fixed target check
Merge pull request #2 from ilario/master

Fixed target check