fix logout again, seems doesn't work on FireFox.