partial fix for #8673
partial fix for #8673

This fix needs to be applied to peardoc


marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core