Fix debug logging error