fix null error when try to get element by social ids in homepage