fix compile error with array init