fixed bug in isVoid