log: fix bug in type overloading.