Change behavior when encountering an invalid tag