fixed plot factor problem