diff --git a/code/model/ShopMember.php b/code/model/ShopMember.php
index <HASH>..<HASH> 100644
--- a/code/model/ShopMember.php
+++ b/code/model/ShopMember.php
@@ -56,7 +56,7 @@ class ShopMember extends DataObjectDecorator {
 		}
 		$existingmember = self::get_by_identifier($data[Member::get_unique_identifier_field()]);
 		if($existingmember && $existingmember->exists()){
-			if(Member::currentUserID() != $existingUniqueMember->ID) {

+			if(Member::currentUserID() != $existingmember->ID) {

 				return false;

 			}
 		}
BUG: fixed typo in ShopMember create_or_merge function