master: fix logout function