fix bug where doclist is too long