fixed the drawing and parsing of smudges