diff --git a/admin/admin.el b/admin/admin.el
index 2d809313ca4..c84287a7024 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -488,10 +488,11 @@ the @import directive."
(delete-region opoint (point))
(search-forward "")
+ (delete-region opoint (match-beginning 0))
(search-forward "\n")
- (delete-region opoint (point))
- (search-forward "")