array access fix