Local indices must be short (Int16), not int (Int32).