Fixed some issues with the LogWriter