fixed error with Document.delete()