fix isDirect