Fix for graphs scale value doesn't restored properly after program restart