Update foundation version to 5.0.2