Minor fix for bug.js

Removed a duplicate line of code.