fixed logout bug in Firefox