bat: compatibility fix