Fixes size issue with structs in matlab