Fixed the logger