Corrected error with log message