-Fixed XML state writer extensions.