fix setScore bug