fix unsafe lock, update score