Fix foundation error