fixed plot click bug