Fix detect struct array