Fixed logging output