fixed issue with transitions messing up color change when nodes are deleted