fixed error with log messages