fix the type check