fix dying logging problem