fixed the bug of detecting node failure and updating successor and predecessor