Fix issue with logs when a array is passed