undynamize structs properly