Fixed an edge case in scoring