fix warning "array subscript"