Fixed initialization order in sync worker.