fixed minor bugs in scoring