HOLY SHIT I FINALLY FIXED THE CLEARING BUG