Update document & bug fix