Fixes to the X3D exporter