Fixed a better logout