fix nested types