Fixes to handle bugs in LAPDF-Text