fixed mismatched shortarray/intarray conversion