bug in filterGarbageLines