Why isn't this clean script working correctly?

-snip-, found out why.