Fixes a logging related crash