diff --git a/tests/scripts/test020-proxycache b/tests/scripts/test020-proxycache
index 994e72f3aca27421d48422d9cf86db7c03570585..6616e16876a4b0171f7dc8ae79dc31fd45134a9d 100755
--- a/tests/scripts/test020-proxycache
+++ b/tests/scripts/test020-proxycache
@@ -30,7 +30,7 @@ if test $WAIT != 0 ; then
 	echo PID $PID
 	read foo
 fi
-KILLPIDS="$PIDS"
+KILLPIDS="$PID"
 
 echo "Using ldapsearch to check that master slapd is running..."
 for i in 0 1 2 3 4 5; do