Fixed bug for struct when used with typedef.