fixed all foundation errors in console