fix log system