work around three.js stupidity