--10102013 - fixed an memory error in logging