Fixed bug with scoring