resintalled foundation to fix errors