fixed foundation override problem