fixed logout (T-6092)