fix type check error