Fixes things to makes logout work again