fixing bits broken by latest three.js