fixes #2360 small bug getting ident by inode