fix deprecated array reference