bugfix - logout