Bug fix on log message