Bug fix of tag model.

and remove debug comments.