Fix log polution caused by wrong type

* workaround for #11553 

cc @PVince81