fix bug and update document.