Fixed base type setting bug