winfix for packed structures