diff --git a/apps/files_sharing/appinfo/info.xml b/apps/files_sharing/appinfo/info.xml
index f6e3053961fc1411e1bbedd31576cad367151e67..c1f98aa94ac4020adcc27069c63423684817ebda 100644
--- a/apps/files_sharing/appinfo/info.xml
+++ b/apps/files_sharing/appinfo/info.xml
@@ -24,7 +24,7 @@ Turning the feature off removes shared files and folders on the server for all s
 	<namespace>Files_Sharing</namespace>
 
 	<background-jobs>
-		<job>OCA\Files_sharing\Lib\DeleteOrphanedSharesJob</job>
-		<job>OCA\Files_sharing\ExpireSharesJob</job>
+		<job>OCA\Files_Sharing\DeleteOrphanedSharesJob</job>
+		<job>OCA\Files_Sharing\ExpireSharesJob</job>
 	</background-jobs>
 </info>
diff --git a/apps/files_sharing/lib/deleteorphanedsharesjob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
similarity index 98%
rename from apps/files_sharing/lib/deleteorphanedsharesjob.php
rename to apps/files_sharing/lib/DeleteOrphanedSharesJob.php
index 72bf6b222e7a2c57e54d648694af4879ff1b682b..2678d46661d01310804555b3a44c15b73684ea73 100644
--- a/apps/files_sharing/lib/deleteorphanedsharesjob.php
+++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
@@ -20,7 +20,7 @@
  *
  */
 
-namespace OCA\Files_sharing\Lib;
+namespace OCA\Files_Sharing;
 
 use OC\BackgroundJob\TimedJob;
 
diff --git a/lib/private/Repair/DropOldJobs.php b/lib/private/Repair/DropOldJobs.php
index 489b89d0869687ca220cb7f565477311e8448baf..c040aa03961aec45bdf4947ff7a36a3e80f83702 100644
--- a/lib/private/Repair/DropOldJobs.php
+++ b/lib/private/Repair/DropOldJobs.php
@@ -73,6 +73,8 @@ class DropOldJobs implements IRepairStep {
 			['class' => 'OC_Cache_FileGlobalGC', 'arguments' => null],
 			['class' => 'OC\Cache\FileGlobalGC', 'arguments' => null],
 			['class' => 'OCA\Files\BackgroundJob\DeleteOrphanedTagsJob', 'arguments' => null],
+			['class' => 'OCA\Files_sharing\Lib\DeleteOrphanedSharesJob', 'arguments' => null],
+			['class' => 'OCA\Files_sharing\ExpireSharesJob', 'arguments' => null],
 		];
 	}