fix deprecated array type