Corrected bug: write begin.dat

13/10/2014