Fixed the call from warn() to warning() while logging warnings