Completely fix for not restoring properly graphs scale value after program restart