fix problem in clean and smudge