Fixed documentation not being properly retrieved in some cases