fixed plot script