A bug found

This situation should not be in real world but anyway, when it tries to remove a nod which is not in a list it crashed the program