Fixed a type error with NLog.