fix the init logger