fix serialisation of annotation blocks