Fix: get struct size in map