fix graph toggle