adde autoFocus to fix #14