fix bug for HTTP 500.

FB login and login is broken.
Need to be fixed.