Fixed wrong warning log.