Fix sign out in production environment