fix autorefresh.