diff --git a/NOTICE b/NOTICE
index 19d0a4ad2e5f607e9c3068b45f88df929d1ecd4a..f33068961dde04afb77842ec07d6ab305b859cab 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 zero-el
 Copyright (C) 2019 Yuanle Song <sylecn@gmail.com>
 
-ibus-compute-pixel-position function in zero.el is copied from ibus.el.
+zero--ibus-compute-pixel-position function in zero.el is copied from ibus.el.
 This function is under GPLv3 license.  Copyright (C) 2010-2012 S. Irie
diff --git a/README b/README
index 3a521f0f2a51279bedbde1500691a3aede3b9242..cecd0e271a77061e28d9f52c328d3d6b93ce59ad 100644
--- a/README
+++ b/README
@@ -8,6 +8,11 @@ zero-el provides zero-pinyin, an Emacs pinyin input method for Chinese and
 zero-framework, which is an emacs Chinese input method framework.
 
 * File list
+- zero.el
+
+  It's a generated file for one-file package distribution. Not used for
+  development.
+
 - zero-framework.el
 
   zero framework source code. This provides the framework and user interface
diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index dea3124da11b97d369b59e13d688d7bc44fda74a..823138729b6ee9497f2cf7b56fa35f193aabc759 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -1,4 +1,6 @@
 #!/bin/sh
 set -e
-make dist-check
-git add zero.el
+if git branch |grep '^\* master'; then
+	make dist-check
+	git add zero.el
+fi