<a href="<?php print $node->path ?>"><?php print check_plain($node->title) ?></a>

This is the code I use for showing my titles as link -on teaser template- . like:
mysite.com/nid/content-1 -no problem

But on the taxonomy listing pages nodes permalink becomes something like:
mysite.com/tag/nid/content-1 -and then, of course, page not found error.

How can I fix it?

(btw i am using pathauto and "tag" is my default path pattern for taxonomy terms)