fixed bugs for omniauth