fix for spectator.js