fix logging file