fix the logger