fix crash on logger