fix how array is initialized