logout bugfix