fixed issue with writing cssr files