diff --git a/js/server_status_monitor.js b/js/server_status_monitor.js
index e1bcad371e..4d017a36cc 100644
--- a/js/server_status_monitor.js
+++ b/js/server_status_monitor.js
@@ -1238,7 +1238,7 @@ AJAX.registerOnload('server_status_monitor.js', function () {
if ($('#selection_box').length) {
$('#selection_box').remove();
}
- selectionBox = $('
');
+ var selectionBox = $('
');
$(document.body).append(selectionBox);
selectionStartX = ev.pageX;
selectionStartY = ev.pageY;
@@ -1289,7 +1289,7 @@ AJAX.registerOnload('server_status_monitor.js', function () {
$(document.body).mouseup(function () {
if ($('#selection_box').length) {
- selectionBox.remove();
+ $('#selection_box').remove();
}
});