Fixed a few bugs in writedatafile in milka.cpp that appeared in the halibut mse