fixing score bug