fix logout was