fixing issues in carbon module