Fixed log initialisation problem