fixed error with first graph