fix to logger