fix "undefined" error for non-gmail accounts