Fix to Facebook code