Fixed calling nulllogger as a function