fixed autorefresh adding wrong class