Modifications to eliminate pdf generation erros (motly with the :index: strings)