 											else
 												clearInterval(checkinLocationFunction)
 												checkinLocationFunction = undefined
-												window.inRangeCheckinRunning[Plugin.groupId()] = false
+												window.inRangeCheckinRunning[Plugin.groupCode()] = false
 										if within
 											log 'accuracy='+accuracy+', beaconRadius='+beaconRadius
 											if accuracy > beaconRadius # Deny capturing with low accuracy
 												if not inRangeValue?
 													#clearInterval(checinLocation) # TODO check if this is required or causes problems
-													#inRangeCheckinRunning[Plugin.groupId()] = false
+													#inRangeCheckinRunning[Plugin.groupCode()] = false
 													log 'Did not checkin location, accuracy too low: '+accuracy
 													Dom.div !->
 														Dom.cls 'infobar'

			return 0
	if not (window.inRangeCheckinRunning?)
		window.inRangeCheckinRunning = {}
	if not (inRangeCheckinRunning[Plugin.groupId()]?)
		inRangeCheckinRunning[Plugin.groupId()] = false
	window.restoreMapLocation = true
	log 'restoreMapLocation='+restoreMapLocation
	#Server.call 'log', Plugin.userId(), "FULL RENDER"

			if checkinLocationFunction?
				clearInterval(checkinLocationFunction)
				checkinLocationFunction = undefined		
				window.inRangeCheckinRunning[Plugin.groupCode()] = false			
	Obs.observe ->
		deviceId = Db.local.peek 'deviceId'
		if not deviceId?
