logger security bug fix part 2