Fix bug initiating logs.