Foundation now works

Fixed foundation compilation problem