Struct scanning issue