fix graph saving broken by last commit