What if you add

CLEAR

Near the beginning of your code?