fixed uninitialized array