Fixed a bug with socialRedirect