Fixing logout.