fix logout direction