Fixed a bug in the logs