fix clear.py