logout workflow fix