Fix tag attribute renaming bugs