fix bug on social login