fixed the setting graph problem