fixed plot error