fix autoplot and plot