fix parse documents