Hopefully fixed logout