fixed array to string conversion bug for the log writer