Fix bug with log type