Picked up fix from Three.js repo