Fixed bug in the logging