fixed plot function bug