bugfix for global logout