fixed a bug with array access