Fixed an issue with the logger