Fixed the clear everything function.