Fixed logging output issue