Fix type check error.