Another workaround as suggested in is to assign array element (i.e. struct) to a local variable like so: