bug fix: checking invalid inode