fix logging module