h3d demo, more small fixes