fixed logout (refresh page)