Fix generation data type.