fix the log type comparison