Fix a bug
Add a log file