anchor.diff:  		repair_tick = 1
   		return
   
  -	if(cyborg && (cyborg.stat != DEAD) && on)
  +	var/mob/living/silicon/robot/cyborg = toggle_action.owner
  +
  +	if(istype(cyborg) && (cyborg.stat != DEAD) && on)
   		if(!cyborg.cell)
   			to_chat(cyborg, "<span class='warning'>Self-repair module deactivated. Please, insert the power cell.</span>")
   			deactivate_sr()
  
positive.code: 	else
  		icon_state = "cyborg_upgrade5"
  
  /obj/item/borg/upgrade/selfrepair/proc/deactivate_sr()
  	STOP_PROCESSING(SSobj, src)
  	on = FALSE
  
negative.code: /obj/item/borg/upgrade/selfrepair/deactivate(mob/living/silicon/robot/R, user = usr)
  	. = ..()
  	if (.)
  		toggle_action.Remove(R)
  		QDEL_NULL(toggle_action)
  		deactivate_sr()
  
  /obj/item/borg/upgrade/selfrepair/ui_action_click()
  	if(on)
  		to_chat(toggle_action.owner, "<span class='notice'>You deactivate the self-repair module.</span>")
  		deactivate_sr()
  	else
  		to_chat(toggle_action.owner, "<span class='notice'>You activate the self-repair module.</span>")
  		activate_sr()
  
  
  /obj/item/borg/upgrade/selfrepair/update_icon()
  	if(toggle_action)
  		icon_state = "selfrepair_[on ? "on" : "off"]"
  		for(var/X in actions)
  			var/datum/action/A = X
  