fix foundation