Fix getting types.