Fix bug #971.

Details:
- Fix bug #971. Chrome: LogOut is not working from the first time.