logout fix for bodyscanner