Repatriation towards the end of the war was often hasty and arranged at short notice in the face of advancing Allied armies, or in some cases repatriation was prevented by fighting.[38] In many cases trains were provided, but in some cases children were ordered to march to other camps.[39] Some camps were closed and the children hidden by local farmers, and in a few cases children escaped and made their own way home.[40] Around 4,000 children were repatriated by the Allied armies in the second half of 1945 with the remainder in the spring of 1946.[41]