correct a pb in writing phases in btn file