Fixed the disappearing graphs problem