fixed typo in document.put