Bug fix for integer overflow in score