fixed debug logging output