fix scoring bug