bug fix for logger check; pointed out by John M.