Fix the log message when it is not an array