fixed settype errors