fixing conflict in unit.js