LogWriter bug fixed