Fix crash due to incorrect array initialization.