Fixed crash in /logout