[fx] Correct the intialisation of the SharedWorker