fix logout