while loop fix in linspector; thanks ruff!!!