Fixed bug with memory graph drawing