fix bug in raw_score calc