diff --git a/lib/repair/repairinvalidshares.php b/lib/repair/repairinvalidshares.php
index f754c17939ac99f5f73e7313f4c1c0e8f48ce00d..21b4d8013e7801659c206f081fea67f41e4ac56a 100644
--- a/lib/repair/repairinvalidshares.php
+++ b/lib/repair/repairinvalidshares.php
@@ -71,7 +71,7 @@ class RepairInvalidShares extends BasicEmitter implements \OC\RepairStep {
 
 	public function run() {
 		$ocVersionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0');
-		if (version_compare($ocVersionFromBeforeUpdate, '8.2.0', '<')) {
+		if (version_compare($ocVersionFromBeforeUpdate, '8.2.0.7', '<')) {
 			// this situation was only possible before 8.2
 			$this->removeExpirationDateFromNonLinkShares();
 		}
diff --git a/version.php b/version.php
index 711d82f1ca1ca95663de9774bff3302724b9ba88..925e897d1ab34410619ab60df30753be78ca8a07 100644
--- a/version.php
+++ b/version.php
@@ -23,7 +23,7 @@
 // We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
 // between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
 // when updating major/minor version number.
-$OC_Version = array(8, 2, 0, 6);
+$OC_Version = array(8, 2, 0, 7);
 
 // The human readable string
 $OC_VersionString = '8.2 beta1';