Seg Fault Fix - Safe Deletion Of Nodes