Fixed small bug calculating DScore