fixed initialisation problem for structure arrays