fixed plot arguments error