Fix smudges incorrectly generating on slopes