Small fix in bar drawing function for ellipse and rectangle shaped nodes.