fix logout not working