Custom Doc index fix