fix write log function