fixed score reseting bug