Fix table types in tosw().