fixed things that were broken with Three.js upgrade