Fixed some bugs, but need to check why structure list index offset doesn't pass test in Tag.