Fix bug in initialisation of log context.