Fix set type check.