fix current scope array access