fixed bug in scoring engine