fix smudge script