Fixed endtag condition
Merge pull request #1 from danilo-valente/master

Fixed endtag condition