diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh
index d5c9baf49d53eb9a9c96cda89caefa621c6f052e..9a275e986719a177160d90dc36adbbe26251c371 100755
--- a/lustre/tests/replay-dual.sh
+++ b/lustre/tests/replay-dual.sh
@@ -529,7 +529,7 @@ test_22() {	# bug 6063 - AST during recovery
 	LOCKS=`grep -v '^0$' /proc/fs/lustre/ldlm/namespaces/mds-*/lock_count`
 	if [ "$LOCKS" != "" ]; then
 		echo "The lock got replayed before mkdir is replayed: $LOCKS"
-		echo 0 >${IMP1}
+		$LCTL --device %$mdc1dev enable_recovery
 		return 1
 	fi