Fixed logging-related issue