fix bug of google and facebook login