fixed generation of document listing