representative.js bug