Update foundation to 5.0.2