Fix getCommonType in a different way from the way I fixed it when