Fixes logging initialisation issue