Fix type in tag validation