Fix debug log not working.