fix plot problem