fix logging context