fixed a bug in ArrayInterface