Dan spotted my bug. :)
fixed call to fieldref: indexes from zero.