Fix to logger