fixing autorefresh

was previously unable to turn off autorefresh after you turned it on.