fix a bug in the forwarding logger