Fix logging script.