Fix typedef bug with structs