fix #17 to avoid watch an undefined value.
update document