Upgrade foundation to 5.0.3