Fix header logout bug