Fix bug when clicking to hide problems in LB1: some were hiding too many problems and others led to infinite loops.
Fix bug when tagging problems using tagging menus which can accidentally remove lines from the pg file.