fixes logout. AGPUSH-140