fix bug in score