fix logic issue with checkDNODE and checkINODE