fixed score nil error