bugfix in score calculations