fixed an issue with logging