Fixed bug for array of struct.