fix the judgement of complex return type