Fixed styling bug on the root node. If nodes were added one at a time, the styles of the last node were not set properly.