fix tag validation