Fixed bug where parts of a graph were not drawn sometimes