Fixed an issue with uninitialized array