fix compilation errors with array