fixed another problem with logout