mask fix log.py