Incorrect array initialisation fixed.