Bugg fixed

Solved the problem where the first node couldn't be deleted.