Fix an unchecked array underrun bug in autolabor2.