bug fixed in score calculation