array access bugfix