Fixed bug that showed graph on error