Update to Foundation 5.2.0, some fixes.