fix plot graph