The 3d example builds again
Got rid of some crash bugs