Update foundation to 4.0.7