Bug fixes in the serialisation of the formats & of the masters