Fixed loop iteration on worker init