Fix parsing when tag has parentheses