Fix bug

When input invalid tag must not clear inputted tag