diff --git a/code/game/machinery/computer/medical.dm b/code/game/machinery/computer/medical.dm
index e7df4198273..6f960887af3 100644
--- a/code/game/machinery/computer/medical.dm
+++ b/code/game/machinery/computer/medical.dm
@@ -84,12 +84,14 @@
dat += "
Medical Robots:"
var/bdat = null
for(var/obj/machinery/bot/medbot/M in world)
+ if(M.z != src.z) continue //only find medibots on the same z-level as the computer
var/turf/bl = get_turf(M)
- bdat += "[M.name] - \[[bl.x],[bl.y]\] - [M.on ? "Online" : "Offline"]
"
- if((!isnull(M.reagent_glass)) && M.use_beaker)
- bdat += "Reservoir: \[[M.reagent_glass.reagents.total_volume]/[M.reagent_glass.reagents.maximum_volume]\]
"
- else
- bdat += "Using Internal Synthesizer.
"
+ if(bl) //if it can't find a turf for the medibot, then it probably shouldn't be showing up
+ bdat += "[M.name] - \[[bl.x],[bl.y]\] - [M.on ? "Online" : "Offline"]
"
+ if((!isnull(M.reagent_glass)) && M.use_beaker)
+ bdat += "Reservoir: \[[M.reagent_glass.reagents.total_volume]/[M.reagent_glass.reagents.maximum_volume]\]
"
+ else
+ bdat += "Using Internal Synthesizer.
"
if(!bdat)
dat += "
Scan for active bots