fixed plot time bugs