fix log type issue