Fixed bugs in grader.js