solved another bug in listDocument
Signed-off-by:Sergio L. <mellowonpsx@gmail.com>