Fixed potential error () when connecting social accounts