Fixed bug in CheetahCaption writer