Fixed writer attribute error in carbon/writer