Fix incorrect Logging