fix bugs in change_status.py