fix checktype