fix main/logout