Fixing logout case