Fixed error saving log string.